<?php

namespace app\wx_htuser\validate;

use think\Validate;

class Goods extends Validate
{
    protected $rule =   [
        'name'  => 'require',
        'httype_id'   => 'require',
        'price'   => 'require',
        'sale'   => 'require',
    ];

    protected $message  =   [
        'name.require' => '名称必须',
        'httype_id.require'     => '商品类型必须',
        'price.require'     => '进价必须',
        'sale.require'     => '售价必须',
    ];
}
